package com.hkw.model;

import java.util.Objects;

/**
 * 班级实体类
 */
public class ClassRoom {
    private Integer id;
    private String name;
    private String grade;
    private String classTeaName;
    private String slogan;
    private Integer number;

    public ClassRoom() {
    }

    public ClassRoom(Integer id, String name, String grade, String classTeaName, String slogan, Integer number) {
        this.id = id;
        this.name = name;
        this.grade = grade;
        this.classTeaName = classTeaName;
        this.slogan = slogan;
        this.number = number;
    }

    public ClassRoom(String name, String grade, String classTeaName, String slogan) {
        this.name = name;
        this.grade = grade;
        this.classTeaName = classTeaName;
        this.slogan = slogan;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getClassTeaName() {
        return classTeaName;
    }

    public void setClassTeaName(String classTeaName) {
        this.classTeaName = classTeaName;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassRoom classRoom = (ClassRoom) o;
        return Objects.equals(id, classRoom.id) &&
                Objects.equals(name, classRoom.name) &&
                Objects.equals(grade, classRoom.grade) &&
                Objects.equals(classTeaName, classRoom.classTeaName) &&
                Objects.equals(slogan, classRoom.slogan) &&
                Objects.equals(number, classRoom.number);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, grade, classTeaName, slogan, number);
    }

    @Override
    public String toString() {
        return "ClassRoom{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", grade='" + grade + '\'' +
                ", classTeaName='" + classTeaName + '\'' +
                ", slogan='" + slogan + '\'' +
                ", number=" + number +
                '}';
    }
}
